<?phpclass ConfigSearch extends AppModel {    public $name = 'ConfigSearch';    public $useTable = 'config_search';        public $validate = array(        'from' => array(            'extension'=>array(                'rule' => array('numeric'),                'message' => 'Please type Numeric',            ),             'between' => array(                'rule'    => 'notEmpty',                'message' => 'This field cannot be left blank'            )        ),        'to' => array(            'extension'=>array(                'rule' => array('numeric'),                'message' => 'Please type Numeric',            ),             'between' => array(                'rule'    => 'notEmpty',                'message' => 'This field cannot be left blank'            )        ),    );}